package com.leizi.igym.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 健身器材表
 * @TableName t_equip
 */
@TableName(value ="t_equip")
@Data
public class Equip implements Serializable {
    /**
     * 健身器械id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 器械名称
     */
    @TableField(value = "equip_name")
    private String equipName;

    /**
     * 器械相关介绍
     */
    @TableField(value = "intro")
    private String intro;

    /**
     * 器械状态，0-停用，1-维修中，2-可用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 器械对于展示图
     */
    @TableField(value = "picture")
    private String picture;

    /**
     * 购入时间
     */
    @TableField(value = "purchase_time")
    private LocalDate purchaseTime;


    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 器械对应区域id

     */
    @TableField(value = "region_id")
    private Long regionId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}